package com.leilei.service.impl;

import com.leilei.dao.ICommodityVersion;
import com.leilei.dao.impl.CommodityVersionImpl;
import com.leilei.entity.CommodityVersion;
import com.leilei.service.ICommodityVersionService;

public class CommodityVersionServiceImpl implements ICommodityVersionService {

    private ICommodityVersion commodityVersion = new CommodityVersionImpl();

    @Override
    public CommodityVersion getCommodityVersionByPvid(int pvid) {

        return commodityVersion.getCommodityVersionByPvid(pvid);
    }

    @Override
    public boolean insertCommodityVersion(CommodityVersion cv) {

        return commodityVersion.insertCommodityVersion(cv) > 0;
    }

    @Override
    public boolean deleteCommodityVersionByPvid(int pvid) {

        return commodityVersion.deleteCommodityVersionByPvid(pvid) > 0;
    }

    @Override
    public boolean updateCommodityVersion(CommodityVersion cv) {

        return commodityVersion.updateCommodityVersion(cv) > 0;
    }

}
